/*
 * @Description: 组织管理
 * @Author: wangwangwang
 * @Date: 2020-07-01 09:45:15
 * @LastEditors: wangwangwang
 * @LastEditTime: 2020-07-01 09:47:39
 */
import request from '@/utils/request'
export const Download = "/base/system/base/organization/export";

// 获取组织数据
export function queryPage(params) {
  return request({
    url: '/base/system/base/organization/query_page',
    method: 'post',
    data: params
  })
}
// 保存组织数据
export function saveOrUpdate(params) {
  return request({
    url: '/base/system/base/organization/save_or_update',
    method: 'post',
    data: params
  })
}
// 修改数据状态
export function updateOrDelete(params) {
  return request({
    url: '/base/system/base/organization/batch_update_or_delete',
    method: 'post',
    data: params,
  })
}
//获取组织列表
export function getsList(params) {
  return request({
    url: '/base/system/base/organization/get_list',
    method: 'get',
    params,
  })
}
export function usersaveOrUpdate(data) {
  return request({
    url: '/base/system/base/organization/user/save_or_update',
    method: 'post',
    data
  })
}
export function usergetList(params) {
  return request({
    url: '/base/system/base/organization/user/get_list',
    method: 'get',
    params
  })
}
export function get_attribute_list(params) {
  return request({
    url: '/base/system/base/organization/get_attribute_list',
    method: 'get',
    params
  })
}
export function update_sort_num(data) {
  return request({
    url: '/base/system/base/organization/update_sort_num',
    method: 'post',
    data
  })
}